//
//  XQMNavgationController.m
//  网易新闻
//
//  Created by yang_0921 on 15/11/1.
//  Copyright © 2015年 Tarena. All rights reserved.
//

#import "NavgationController.h"

@interface NavgationController ()

@end

@implementation NavgationController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self configGlobalUIStyle];
    
}


- (void)configGlobalUIStyle{
    // 主题颜色
    [[UINavigationBar appearance] setBarTintColor:[UIColor whiteColor]];
    
    // 背景图片：红色图片
    UIImage *image = [UIImage imageNamed:@"top_navigation_background"];
    [[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault];
    
    // 标题字体 和 颜色
    NSDictionary *dict = @{
                           NSForegroundColorAttributeName: [UIColor whiteColor],
                           NSFontAttributeName: [UIFont systemFontOfSize:23]
                           };
    [[UINavigationBar appearance] setTitleTextAttributes:dict];
   
}


@end
